package com.superhero.common.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "WxLoginInput", description = "微信授权登录入参封装")
public class WxLoginInput {

    @NotBlank(message = "code不能为空")
    @ApiModelProperty(name = "code", value = "code", dataType = "String", required = true)
    private String code;
    @NotBlank(message = "encryptedData不能为空")
    @ApiModelProperty(name = "encryptedData", value = "encryptedData", dataType = "String", required = true)
    private String encryptedData;
    @NotBlank(message = "iv不能为空")
    @ApiModelProperty(name = "iv", value = "iv", dataType = "String", required = true)
    private String iv;
}
